<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu</title>
<style type="text/css">
body {
	background-color: honeydew;
}

#content {
	background-color: rgb(255, 255, 255, 0.95);
	width: 420px;
	height: 510px;
	padding: 10px;
	margin-top: 8%;
	margin-left: auto;
	margin-right: auto;
	display: block;
}
.header {
	width: 100%;
	height: 80px;
	margin-bottom: 20px;
	border-bottom: 2px solid #a0a0a0;
	text-align: center;
}
table{
	font-family: verdana,arial,sans-serif;
	font-size:13px;
	color:#333333;
	border-width: 1px;
	border-color: #dcdcdc;
	border-collapse: collapse;
	border-radius: 4px
}

table th{
	border-width: 1px;
	padding: 10px;
	border-style: solid;
	border-color: #dcdcdc;
	background-color: #dedede;
}

table td{
	border-width: 1px;
	padding: 10px;
	border-style: solid;
	border-color: #dcdcdc;
	background-color: #ffffff;
}


a {
	color: #4a4744;
	font-size: 13px;
	text-decoration: none;
}

a:hover {
	color: #ff7d0a;
}

a:active {
	color: #ee7204;
}

</style>

</head>
<body>

	<div id="content">
		<div class="header">
			<h3>${sessionScope.name }</h3>
			<h2 style="color: cadetblue;">FoodList</h2>
			
		</div>
		<a href="toaddfood"><button>Add Food</button></a>
		<table>
			<tr>
				<th></th>
				<th>Name</th>
				<th>Price</th>
				<th>Type</th>
				<th></th>
				<th></th>
			</tr>
			<c:forEach items="${list }" var="f">
				<tr>
					<th><img style="width: 100px; height: 100px;"
						src="${f.fimage }" /></th>
					<th>${f.fname }</th>
					<th>${f.ftype }</th>
					<th><a href="deletefood?fid=${f.fid }">Delete</a></th>
					<th><a href="toupdate?fid=${f.fid }">Update</a></th>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>